<template>
	<view class="cart">
		<!-- 购物车	 -->
		<view class="address">
			<view><text>张三</text><text>020-8165135</text></view>
			<view>浙江省杭州市</view>
		</view>
		<view class="title">购物车</view>
		<view class="item">
			<view class="checkbox">
				<checkbox-group>
					<checkbox></checkbox>
				</checkbox-group>
			</view>

			<image src="../../static/520.png" mode=""></image>
			<view class="right">
				<view class="name">TCL 49A950C 49英寸 4K曲面 HDR 人工智能 32核超高清安卓....</view>
				<view class="info">
					<text>￥3199</text>
					<button type="small">-</button><text>1</text><button type="small">+</button>
				</view>
			</view>
		</view>
		<view class="bottom">
			<view class="left">
				<checkbox-group>
					<checkbox>全选</checkbox>
				</checkbox-group>
			</view>
			<view class="bottom_right">
				<view class="price">
					<view>合计: <text>￥3199</text></view>
					<view>包含运费</view>
				</view>
				<view class="jiesuan">
					结算（1)
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.cart {
		.bottom {
			height: 116rpx;
			// height:;
			width: 100%;
			position: fixed;
			top: 1115rpx;
			border-top: 1px solid #ccc;
			border-bottom: 1px solid #ccc;
			// background-color: pink;
			display: flex;
			justify-content: space-between;

			.left {
				font-size: 30rpx;
			}

			.bottom_right {
				.price {
					font-size: 30rpx;
					padding-right: 10rpx;
					view:nth-child(1){
						text{
							color: #EB4450;
							font-size: 43rpx;
						}
					}
				}

				display: flex;

				.jiesuan {
					text-align: center;
					line-height: 100rpx;
					width: 250rpx;
					height: 100%;
					background-color: #EB4450;
					color: #FFFFFF;
					// font-size: 35rpx;
					// button{
					// 	// line-height: ;
					// 	height: 100%;
					// 	background-color: #EB4450;
					// 	color: #FFFFFF;
					// 	font-size: 35rpx;
					// }
				}
			}
		}


		.address {
			border-bottom: 1px solid #EB4450;
			padding-bottom: 15rpx;

			view:nth-child(1) {
				display: flex;
				justify-content: space-between;
				padding: 0 21rpx;

				// text:nth:child(1) {
				// 	text-align: left;
				// }

				// text:nth:child(2) {
				// 	text-align: right;
				// }
			}

			view:nth-child(2) {
				margin-left: 21rpx;
			}
		}

		.title {
			height: 100rpx;
			line-height: 100rpx;
			border-bottom: 1px solid #EB4450;
			padding-left: 20rpx;
			color: #EB4450;
			font-size: 34rpx;
		}

		.item {
			display: flex;
			border-bottom: 1px solid #ccc;
			padding-bottom: 15rpx;

			.checkbox {
				width: 200rpx;
				height: 100%;
				padding-top: 40rpx;

				// line-height: 100%;
				checkbox-group {
					checkbox {
						margin-left: 30rpx;
					}
				}
			}

			image {
				width: 250rpx;
				height: 130rpx;
			}

			.right {
				.name {
					font-size: 30rpx;
				}

				.info {
					display: flex;

					// justify-content: space-between;
					// flex-direction: column;
					text:nth-child(1) {
						color: #EB4450;
						margin-right: 30rpx;
					}

					button {
						line-height: 60rpx;
						text-align: center;
						width: 60rpx;
						height: 60rpx;
					}

				}
			}



		}
	}
</style>
